//
//  Person.m
//  16通知
//
//  Created by apple on 15/8/5.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "Person.h"
#import "Compay.h"
@implementation Person

- (void)text:(NSNotification *) notification
{
    NSLog(@"收到一条通知");
    
    Compay *c = notification.object;
    NSLog(@"%@发布了一个通知名称是%@,内容是%@",c.name,notification.name,notification.userInfo);

}
@end
